package com.cj.controller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

@RestController
public class AxiosController {
    private HashMap<String,Object> map = new HashMap<>();
    @GetMapping("/doAxiosGet")
    public HashMap<String,Object> doAxiosGet(String name){
        map.put(name,1);

        return map;
    }

    @PostMapping("/doAxiosPost")
    public HashMap<String,Object> doAxiosPost(@RequestBody  HashMap<String,Object> map1){
        return map1;
    }
}
